package com.joelemon.mockinfluxdbdata.datamock.v2;

import com.joelemon.mockinfluxdbdata.datamock.v2.mockunit.DefaultMockValueUnit;
import lombok.Data;

import java.util.Map;

/**
 * @Description: 单个模拟
 * @Author: HJY
 * @Date: 2023/11/30
 */
@Data
public class BaseMockConfigItem {

    private Map<String, String> tags;

    private Map<String, DefaultMockValueUnit> fields;

    public boolean check() {
        return tags != null && tags.size() > 0 && fields != null && fields.size() > 0;
    }
}
